import useRoutes from 'react-router-dom'
import Login from "../pages/Login";
import Page1 from "./pages/Page1";
import Page2 from "./pages/Page2";
import Scada from "./pages/scada";
import ScadaPage3 from "./pages/Page3";
import React from "react";
const MyRoutes = () => {
    return useRoutes([
        {
            path: '/',
            element: <Login />,
            children: [
                {
                    path: '',
                    element: <Story />,
                },
                {
                    path: 'address',
                    element: <Address />,
                },
            ],
        },
        {
            path: '/home',
            element: <Page1 />,
        },
        {
            path: '/about',
            element: <scada />,

        },
    ]);
};
